﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySoftWare.BaseModel;

namespace MySoftWare.MVCCommon.Repository
{
    /// <summary>
    /// added by lqm 2013.06.18
    /// </summary>
    public interface IMenuRepository
    {
        /// <summary>
        /// 获取系统所有菜单
        /// </summary>
        /// <returns></returns>
        List<MenuModel> GetSysMenuList();

        /// <summary>
        /// 根据指定菜单ID获取其子菜单(可获取无限的下级菜单)
        /// </summary>
        /// <param name="MenuID"></param>
        /// <returns></returns>
        List<MenuModel> GetMenuChild(string MenuID);

        /// <summary>
        /// 根据指定菜单ID获取树状结构菜单列表
        /// </summary>
        /// <param name="ParentID"></param>
        /// <returns></returns>
        List<TreeMenuModel> GetSysMenuList(int ParentID);
    }
}
